<template>
  <div class="income-detail">
    <nav-bar title="收益明细"
             bgColor="#eeeeee"></nav-bar>
    <div class="income-top">
      <span class="top-title">总余额</span>
      <span class="top-price"><em>¥</em>1223.65</span>
      <li>
        <span>提现</span>
        <span>充值</span>
      </li>
    </div>
    <section class="income-list">
      <span>收益明细</span>
      <div class="list-item"
           v-for="item in 13"
           :key="item">
        <li>
          <span>米先生{{item}}</span>
          <span>会员升级</span>
          <span class="item-reward">奖励+5元+5积分</span>
        </li>
        <li>
          <span>ID:12345</span>
          <span>2020-1-11 17:48</span>
          <span>2020-1-11 17:48</span>
        </li>
      </div>
    </section>
  </div>
</template>

<script>
import NavBar from '@/components/NavBarSecond'
export default {
  data () {
    return {
    };
  },
  components: {
    NavBar
  },
  created () { },
  methods: {}
}

</script>

<style lang='scss' scoped>
.income-detail {
  @include top-page;
  background-color: #eeeeee;
  align-items: center;
  .income-top {
    width: 100%;
    height: 3.5rem;
    @include bgImgCover('../../assets/image/user/sy_bg.png');
    @include flex-column;
    align-items: center;
    color: #fff;
    .top-title {
      margin-top: 0.6rem;
      font-size: 0.36rem;
    }
    .top-price {
      margin-top: 0.3rem;
      font-size: 0.6rem;
      em {
        font-size: 0.34rem;
      }
    }
    li {
      margin-top: 0.5rem;
      width: 100%;
      display: flex;
      justify-content: space-around;
      font-size: 0.34rem;
      > span {
        width: 3rem;
        height: 0.8rem;
        line-height: 0.8rem;
        text-align: center;
        border-radius: 1rem;
        &:first-child {
          background-color: #fff;
          color: #e85014;
        }
        &:last-child {
          background-color: #e85014;
          color: #fff;
        }
      }
    }
  }
  .income-list {
    flex: 1;
    width: calc(100% - 0.1rem);
    margin-top: 0.1rem;
    border-radius: 0.1rem;
    box-sizing: border-box;
    padding: 0.2rem;
    overflow-y: auto;
    background-color: #ffffff;
    > span {
      font-size: 0.3rem;
      font-weight: 600;
      color: #020202;
      margin-bottom: 0.2rem;
    }
    .list-item {
      @include flex-column;
      height: 1.1rem;
      justify-content: space-between;
      box-sizing: border-box;
      padding: 0.2rem;
      position: relative;
      &:after {
        position: absolute;
        content: '';
        height: 1px;
        width: calc(100% + 0.4rem);
        bottom: 0;
        left: -0.2rem;
        background-color: #eeeeee;
      }
      > li {
        display: flex;
        justify-content: space-between;
        align-items: center;

        &:first-child {
          font-size: 0.26rem;
          font-weight: 400;
          color: #040404;
          .item-reward {
            color: #e85014;
          }
        }
        &:last-child {
          font-size: 0.22rem;
          color: #7a7a7a;
        }
      }
    }
  }
}
</style>